import { LangEnGhs } from "@/utils/langEnGhs"
import { GET_ZONE_AREA_REQ_SUCCESS } from "../actions/getZoneArea"
import { LangFrFcfa } from "@/utils/langFrFcfa"

// 初始状态
const initState = LangFrFcfa

// 操作 用户时区 信息的 reducer 函数
export const getZoneArea = (state = initState, action) => {
    const { type, payload } = action
    console.log('getZoneArea type: ' + type)

    if (GET_ZONE_AREA_REQ_SUCCESS === type) {
        return { ...payload }

    } else {
        return state
    }
}